package com.cdc.toolbars;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.widget.Toast;

import com.cdc.code.CodeActivity;
import com.cdc.taskhandler.R;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class ToolBar4Activity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentLayout(R.layout.activity_tool_bar4);//设置到BaseActivity中的content中
        setTitle("ToolBar4");//设置标题
        setBackArrow();
        setCodeClick(new CodeClick() {
            @Override
            public void showCode() {
                Toast.makeText(ToolBar4Activity.this, "ToolBar4Activity", Toast.LENGTH_SHORT).show();
                Map<String,String> codeMap=new HashMap<>();
                codeMap.put("BaseActivity","code/BaseActivity");
                codeMap.put("activity_base","code/activity_base");
                goToActivity(CodeActivity.class,CodeActivity.EXTRA_KEY, (Serializable) codeMap);
            }
        });




    }




}
